package com.tjec.project.businessWorkbench.controller;

import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.tjec.framework.aspectj.lang.annotation.Log;
import com.tjec.framework.aspectj.lang.enums.BusinessType;
import com.tjec.framework.security.service.TokenService;
import com.tjec.project.businessWorkbench.domain.BmsBusiness;
import com.tjec.project.businessWorkbench.service.IBmsBusinessService;
import com.tjec.project.businessWorkbench.service.impl.BmsBusinessSketchServiceImpl;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import com.tjec.framework.web.controller.BaseController;
import com.tjec.framework.web.domain.AjaxResult;
import com.tjec.common.utils.ServletUtils;
import com.tjec.common.utils.poi.ExcelUtil;
import com.tjec.framework.web.page.TableDataInfo;

/**
 * 业务概况Controller
 * 
 * @author pangyongfeng
 * @date 2020-05-12
 */
@Api(value = "业务概况", tags = {"业务概况接口"})
@RestController
@RequestMapping("/businessWorkbench/businessSketch")
public class BmsBusinessSketchController extends BaseController
{
    @Autowired
    private BmsBusinessSketchServiceImpl bmsBusinessSketchServiceImpl;

    /**
     * 获取业务概况详细信息
     */
    @GetMapping(value = "/{businessId}")
    public AjaxResult getInfo(@PathVariable("businessId") String businessId)
    {
        return AjaxResult.success(bmsBusinessSketchServiceImpl.getBusinessSketch(businessId));
    }
}
